'use strict'
import request from '@/utils/request'
/**
 * 异步企业部门树
 */
export function getComAndOrgTree(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/departmentInfo/getDeptTree',
    method: 'post',
    data
  })
}

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}
// 记录分页查询
export function recordQueryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionCollectRecord/queryPage',
    method: 'post',
    data
  })
}
// 分页查询
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionCollectActivity/queryPage',
    method: 'post',
    data
  })
}
// 查询详情
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/questionCollectActivity/get',
    method: 'post',
    data
  })
}
// 新增
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/questionCollectActivity/insert',
    method: 'post',
    data
  })
}
// 编辑
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/questionCollectActivity/update',
    method: 'post',
    data
  })
}
// 删除
export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionCollectActivity/deleteById',
    method: 'post',
    data
  })
}
